home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-06-21 | 2.0 KB | 49 lines | [TEXT/MPS ] |
- Macsbug : run a macsbug command in the MPW Shell.
-
- Use "Macsbug command" to run a macsbug command into a shell window,
- like this:
-
- macsbug ht
- Totaling the Application heap at 0051114C
- Total Blocks Total of Block Sizes
- Free 0006 #6 001A00BC #1704124
- Nonrelocatable 003D #61 00004E38 #20024
- Relocatable 0178 #376 000475F8 #292344
- Locked 000A #10 000210A8 #135336
- Purgeable and not locked 0015 #21 0001E96C #125292
- Heap size 01BB #443 001EC4EC #2016492
-
- macsbug dm 0 30
- Displaying memory from 0
- 00000000 4081 0000 4081 0000 0079 960C 000C 0314 @•••@••••y••••••
- 00000010 000C 0316 000C 0318 4080 26F8 4080 26FA ••••••••@•&•@•&•
- 00000020 4080 26FC 4080 26FE 4080 99B0 4080 2702 @•&•@•&•@•••@•'•
-
- macsbug hd f
- Displaying the Application heap at 0051114C
- Start Length Tag Mstr Ptr Lock Prg Type ID File Name
- 005323B4 00000004+00 F
- 005326B0 00000008+00 F
- 00533BA4 0000000C+00 F
- 00533DB8 00000160+00 F
- 00544BC0 00000144+00 F
- 00544D0C 00001328+00 F
- 0054603C 000002F8+00 F
- 0055D0B0 0019E474+00 F
- #8 blocks listed, which use #1703312 bytes, storing #1703248 bytes
- There are #1828604 free or purgeable bytes in this heap
-
- The macsbug script hands the command off to macsbugtool, which concatenates
- it into a string it passes through DebugStr(). The output is collected
- in MacsBug's log file, which is then dumped into the window, with a little
- editing.
-
- If the output of a command takes more than one screen, you may have to press
- the spacebar a few times to prod MacsBug along.
-
- This whole scheme is rather fragile; treat it kindly. In particular, avoid
- "macsbug g," which confuses MacsBug.
-
- The tool and script were written by Tom Lippincott (lippin@math.berkeley.edu)
- with help from Robert Herrell. Share and Enjoy!
-